<!DOCTYPE HTML>
<html>
	<head>
		<title></title>
		<meta charset="utf-8" />
	</head>
	<style>
		summary:focus {
			/* outline: -webkit-focus-ring-color auto 1px; */
			outline: none !important;
			/* padding-bottom: 30px; */
		}

		h3 {
			margin-top: 30px;
		}

		pre {
			background-color: #d4d4dr;
			border: 1px solid #ccc;
		}

		body {
			margin-left: 150px;
			padding-left: 10px;
			border-left: 5px solid pink;
			padding-bottom:300px;
		}
		.children{display: none;}

		body>div {
			margin-top: 20px;
		}
		h1{margin-left:100px;color:#C5C8C6;}
	</style>
	<body>
		<h1>后台api接口</h1>
		<div>
			<h3>1.sku列表获取，根据商品编号 (get)</h3>
			<div class="children">
				<p><span>请求示例:</span>http://10.10.10.114:8080/sku/29</p>
				<p><span>请求参数：</span>29 它是商品的编号(id)</p>
				<details>
					<summary>返回结果:</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":[{"id":106,"productId":29,"skuCode":"201808270029001","price":5499.00,"stock":99,"lowStock":null,"pic":null,"sale":null,"promotionPrice":null,"lockStock":0,"spData":"[{\"key\":\"颜色\",\"value\":\"金色\"},{\"key\":\"容量\",\"value\":\"32G\"}]"},{"id":107,"productId":29,"skuCode":"201808270029002","price":6299.00,"stock":100,"lowStock":null,"pic":null,"sale":null,"promotionPrice":null,"lockStock":0,"spData":"[{\"key\":\"颜色\",\"value\":\"金色\"},{\"key\":\"容量\",\"value\":\"64G\"}]"},{"id":108,"productId":29,"skuCode":"201808270029003","price":5499.00,"stock":100,"lowStock":null,"pic":null,"sale":null,"promotionPrice":null,"lockStock":0,"spData":"[{\"key\":\"颜色\",\"value\":\"银色\"},{\"key\":\"容量\",\"value\":\"32G\"}]"},{"id":109,"productId":29,"skuCode":"201808270029004","price":6299.00,"stock":100,"lowStock":null,"pic":null,"sale":null,"promotionPrice":null,"lockStock":0,"spData":"[{\"key\":\"颜色\",\"value\":\"银色\"},{\"key\":\"容量\",\"value\":\"64G\"}]"}]}</pre>
				</details>
			</div>
		</div>
		<div>
			<h3>2.商品规格获取，根据规格编号..get</h3>
			<div class="children">
				<p><span>请求示例:</span>http://10.10.10.114:8080/productAttribute/list/3?type=0</p>
				<p><span>请求参数:</span>3 它是商品的规格编号，在商品对象里面(productAttributeCategoryId)</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":5,"totalPage":1,"total":2,"list":[{"id":43,"productAttributeCategoryId":3,"name":"颜色","selectType":0,"inputType":0,"inputList":"","sort":100,"filterType":0,"searchType":0,"relatedStatus":0,"handAddStatus":1,"type":0},{"id":44,"productAttributeCategoryId":3,"name":"容量","selectType":0,"inputType":1,"inputList":"16G,32G,64G,128G","sort":0,"filterType":0,"searchType":0,"relatedStatus":0,"handAddStatus":0,"type":0}]}}</pre>
				</details>
			</div>
		</div>
		<div>
			<h3>3.sku搜索，根据sku编号...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/sku/29?keyword=201808270029001</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":[{"id":106,"productId":29,"skuCode":"201808270029001","price":5499.00,"stock":99,"lowStock":null,"pic":null,"sale":null,"promotionPrice":null,"lockStock":0,"spData":"[{\"key\":\"颜色\",\"value\":\"金色\"},{\"key\":\"容量\",\"value\":\"32G\"}]"}]}</pre>
				</details>
			</div>
		</div>
		<div>
			<h3>4.用户登录...post</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/admin/login</p>
				<p>请求参数示例：{username:"xx",password:"xx"}</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"tokenHead":"Bearer ","token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE2MDEwMjIwMjEyOTYsImV4cCI6MTYwMTYyNjgyMX0.AgfGldSc8yrvr5gsdr7rFFh76V29_TqTRWIiXSDO-5YfuMuGAWU6vofDviGK7ad7HOuCuWFlvaDxKu3_WlKZ5w"}}</pre>
				</details>
			</div>
		</div>
		<div>
			<h3>5.商品列表，商品分页，商品搜索...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/product/list?keyword=1&pageNum=1&pageSize=5&publishStatus=0&verifyStatus=1&productSn=1&productCategoryId=37&brandId=2</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":5,"totalPage":2,"total":8,"list":[{"id":29,"brandId":51,"productCategoryId":19,"feightTemplateId":0,"productAttributeCategoryId":3,"name":"Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机","pic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg","productSn":"7437799","deleteStatus":0,"publishStatus":0,"newStatus":0,"recommandStatus":0,"verifyStatus":0,"sort":0,"sale":0,"price":5499.00,"promotionPrice":null,"giftGrowth":5499,"giftPoint":5499,"usePointLimit":0,"subTitle":"【限时限量抢购】Apple产品年中狂欢节，好物尽享，美在智慧！速来 >> 勾选[保障服务][原厂保2年]，获得AppleCare+全方位服务计划，原厂延保售后无忧。","originalPrice":5499.00,"stock":100,"lowStock":0,"unit":"","weight":0.00,"previewStatus":0,"serviceIds":"","keywords":"","note":"","albumPics":"","detailTitle":"","promotionStartTime":null,"promotionEndTime":null,"promotionPerLimit":0,"promotionType":0,"brandName":"苹果","productCategoryName":"手机数码","description":null,"detailDesc":null,"detailHtml":null,"detailMobileHtml":null},{"id":30,"brandId":50,"productCategoryId":8,"feightTemplateId":0,"productAttributeCategoryId":1,"name":"HLA海澜之家简约动物印花短袖T恤","pic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ad83a4fN6ff67ecd.jpg!cc_350x449.jpg","productSn":"HNTBJ2E042A","deleteStatus":0,"publishStatus":0,"newStatus":0,"recommandStatus":1,"verifyStatus":0,"sort":0,"sale":0,"price":98.00,"promotionPrice":null,"giftGrowth":0,"giftPoint":0,"usePointLimit":0,"subTitle":"2018夏季新品微弹舒适新款短T男生 6月6日-6月20日，满300减30，参与互动赢百元礼券，立即分享赢大奖","originalPrice":98.00,"stock":100,"lowStock":0,"unit":"","weight":0.00,"previewStatus":0,"serviceIds":"","keywords":"","note":"","albumPics":"","detailTitle":"","promotionStartTime":null,"promotionEndTime":null,"promotionPerLimit":0,"promotionType":0,"brandName":"海澜之家","productCategoryName":"T恤","description":null,"detailDesc":null,"detailHtml":null,"detailMobileHtml":null},{"id":32,"brandId":50,"productCategoryId":8,"feightTemplateId":0,"productAttributeCategoryId":null,"name":"HLA海澜之家短袖T恤男基础款","pic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a51eb88Na4797877.jpg","productSn":"HNTBJ2E153A","deleteStatus":0,"publishStatus":0,"newStatus":0,"recommandStatus":0,"verifyStatus":0,"sort":0,"sale":0,"price":68.00,"promotionPrice":null,"giftGrowth":0,"giftPoint":0,"usePointLimit":0,"subTitle":"HLA海澜之家短袖T恤男基础款简约圆领HNTBJ2E153A藏青(F3)175/92A(50)","originalPrice":68.00,"stock":100,"lowStock":0,"unit":"","weight":0.00,"previewStatus":0,"serviceIds":"","keywords":"","note":"","albumPics":"","detailTitle":"","promotionStartTime":null,"promotionEndTime":null,"promotionPerLimit":0,"promotionType":0,"brandName":"海澜之家","productCategoryName":"T恤","description":null,"detailDesc":null,"detailHtml":null,"detailMobileHtml":null},{"id":33,"brandId":6,"productCategoryId":35,"feightTemplateId":0,"productAttributeCategoryId":null,"name":"小米（MI）小米电视4A ","pic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b02804dN66004d73.jpg","productSn":"4609652","deleteStatus":0,"publishStatus":0,"newStatus":1,"recommandStatus":1,"verifyStatus":0,"sort":0,"sale":0,"price":2499.00,"promotionPrice":null,"giftGrowth":0,"giftPoint":0,"usePointLimit":0,"subTitle":"小米（MI）小米电视4A 55英寸 L55M5-AZ/L55M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视","originalPrice":2499.00,"stock":100,"lowStock":0,"unit":"","weight":0.00,"previewStatus":0,"serviceIds":"","keywords":"","note":"","albumPics":"","detailTitle":"","promotionStartTime":null,"promotionEndTime":null,"promotionPerLimit":0,"promotionType":0,"brandName":"小米","productCategoryName":"手机数码","description":null,"detailDesc":null,"detailHtml":null,"detailMobileHtml":null},{"id":34,"brandId":6,"productCategoryId":35,"feightTemplateId":0,"productAttributeCategoryId":null,"name":"小米（MI）小米电视4A 65英寸","pic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b028530N51eee7d4.jpg","productSn":"4609660","deleteStatus":0,"publishStatus":1,"newStatus":1,"recommandStatus":1,"verifyStatus":0,"sort":0,"sale":0,"price":3999.00,"promotionPrice":null,"giftGrowth":0,"giftPoint":0,"usePointLimit":0,"subTitle":" L65M5-AZ/L65M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视","originalPrice":3999.00,"stock":100,"lowStock":0,"unit":"","weight":0.00,"previewStatus":0,"serviceIds":"","keywords":"","note":"","albumPics":"","detailTitle":"","promotionStartTime":null,"promotionEndTime":null,"promotionPerLimit":0,"promotionType":0,"brandName":"小米","productCategoryName":"手机数码","description":null,"detailDesc":null,"detailHtml":null,"detailMobileHtml":null}]}}</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>6.商品类型列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/productAttribute/category/list?pageNum=1&pageSize=5</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":5,"totalPage":1,"total":5,"list":[{"id":4,"name":"配件","attributeCount":0,"paramCount":0},{"id":5,"name":"居家","attributeCount":0,"paramCount":0},{"id":6,"name":"洗护","attributeCount":0,"paramCount":0},{"id":10,"name":"测试分类","attributeCount":0,"paramCount":0},{"id":11,"name":"服装-鞋帽","attributeCount":3,"paramCount":0}]}}</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>7.品牌管理列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/brand/list?pageNum=1&pageSize=10</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":10,"totalPage":2,"total":11,"list":[{"id":6,"name":"小米","firstLetter":"M","sort":500,"factoryStatus":1,"showStatus":1,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5a912944N474afb7a.png","bigPic":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5afd7778Nf7800b75.jpg","brandStory":null},{"id":49,"name":"七匹狼","firstLetter":"S","sort":200,"factoryStatus":1,"showStatus":1,"productCount":77,"productCommentCount":400,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/1522738681.jpg","bigPic":null,"brandStory":null},{"id":50,"name":"海澜之家","firstLetter":"H","sort":200,"factoryStatus":1,"showStatus":1,"productCount":66,"productCommentCount":300,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/LOGO1024.png","bigPic":"","brandStory":null},{"id":51,"name":"苹果","firstLetter":"A","sort":200,"factoryStatus":1,"showStatus":1,"productCount":55,"productCommentCount":200,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg","bigPic":null,"brandStory":null},{"id":2,"name":"三星","firstLetter":"S","sort":100,"factoryStatus":0,"showStatus":0,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (1).jpg","bigPic":null,"brandStory":null},{"id":3,"name":"华为","firstLetter":"H","sort":100,"factoryStatus":0,"showStatus":0,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (2).jpg","bigPic":null,"brandStory":null},{"id":4,"name":"格力","firstLetter":"G","sort":30,"factoryStatus":0,"showStatus":0,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (3).jpg","bigPic":null,"brandStory":null},{"id":5,"name":"方太","firstLetter":"F","sort":20,"factoryStatus":0,"showStatus":0,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (4).jpg","bigPic":null,"brandStory":null},{"id":1,"name":"万和","firstLetter":"W","sort":0,"factoryStatus":0,"showStatus":0,"productCount":100,"productCommentCount":100,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(5).jpg","bigPic":"","brandStory":null},{"id":21,"name":"OPPO","firstLetter":"O","sort":0,"factoryStatus":0,"showStatus":0,"productCount":88,"productCommentCount":500,"logo":"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(6).jpg","bigPic":"","brandStory":null}]}}</pre>
				</details>
			</div>
		</div>
		<div>
			<h3>8.商品分类列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/productCategory/list/0?pageNum=1&pageSize=5</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":5,"totalPage":1,"total":5,"list":[{"id":1,"parentId":0,"name":"服装","level":0,"productCount":100,"productUnit":"件","navStatus":0,"showStatus":0,"sort":1,"icon":null,"keywords":"服装","description":null},{"id":2,"parentId":0,"name":"手机数码","level":0,"productCount":100,"productUnit":"件","navStatus":1,"showStatus":1,"sort":1,"icon":null,"keywords":"手机数码","description":null},{"id":3,"parentId":0,"name":"家用电器","level":0,"productCount":100,"productUnit":"件","navStatus":1,"showStatus":1,"sort":1,"icon":null,"keywords":"家用电器","description":null},{"id":4,"parentId":0,"name":"家具家装","level":0,"productCount":100,"productUnit":"件","navStatus":1,"showStatus":1,"sort":1,"icon":null,"keywords":"家具家装","description":null},{"id":5,"parentId":0,"name":"汽车用品","level":0,"productCount":100,"productUnit":"件","navStatus":1,"showStatus":1,"sort":1,"icon":null,"keywords":"汽车用品","description":null}]}}</pre>
				</details>
			</div>
		</div> 
		
		<div>
			<h3>9.sku批量修改...post</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/sku/update/29</p>
				<details>
					<summary>请求参数内容：</summary>
					<pre class="parseJson">{"id": 106,"lockStock": 0,"lowStock": 1,"pic": null,"price": 1199,"productId": 29,"promotionPrice": null,"sale": null,"skuCode": "201808270029001","spData": [{"key":"颜色","value":"金色"},{"key":"容量","value":"32G"}],"stock": 99}</pre>
				</details>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":8}</pre>
				</details>
			</div>
		</div> 
		
		<div>
			<h3>10.属性类型列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/productAttribute/category/list?pageNum=1&pageSize=100</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":100,"totalPage":1,"total":4,"list":[{"id":5,"name":"居家","attributeCount":0,"paramCount":0},{"id":6,"name":"洗护","attributeCount":0,"paramCount":0},{"id":10,"name":"测试分类","attributeCount":0,"paramCount":0},{"id":11,"name":"服装-鞋帽","attributeCount":3,"paramCount":0}]}}</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>11.关联专题列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/prefrenceArea/listAll</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":[{"id":1,"name":"让音质更出众","subTitle":"音质不打折 完美现场感","sort":null,"showStatus":1,"pic":null},{"id":2,"name":"让音质更出众22","subTitle":"让音质更出众22","sort":null,"showStatus":null,"pic":null},{"id":3,"name":"让音质更出众33","subTitle":null,"sort":null,"showStatus":null,"pic":null},{"id":4,"name":"让音质更出众44","subTitle":null,"sort":null,"showStatus":null,"pic":null}]}
					</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>12.关联优选列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/prefrenceArea/listAll</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":[{"id":1,"name":"让音质更出众","subTitle":"音质不打折 完美现场感","sort":null,"showStatus":1,"pic":null},{"id":2,"name":"让音质更出众22","subTitle":"让音质更出众22","sort":null,"showStatus":null,"pic":null},{"id":3,"name":"让音质更出众33","subTitle":null,"sort":null,"showStatus":null,"pic":null},{"id":4,"name":"让音质更出众44","subTitle":null,"sort":null,"showStatus":null,"pic":null}]}
					</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>13.规格列表，根据商品的属性类型...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/productAttribute/list/11?pageNum=1&pageSize=100&type=0</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":100,"totalPage":1,"total":3,"list":[{"id":49,"productAttributeCategoryId":11,"name":"颜色","selectType":0,"inputType":1,"inputList":"红色,蓝色,绿色","sort":0,"filterType":1,"searchType":0,"relatedStatus":0,"handAddStatus":0,"type":0},{"id":50,"productAttributeCategoryId":11,"name":"尺寸","selectType":0,"inputType":1,"inputList":"38,39,40","sort":0,"filterType":0,"searchType":0,"relatedStatus":0,"handAddStatus":0,"type":0},{"id":51,"productAttributeCategoryId":11,"name":"风格","selectType":0,"inputType":1,"inputList":"夏季,秋季","sort":0,"filterType":0,"searchType":0,"relatedStatus":0,"handAddStatus":0,"type":0}]}}
					</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>14.规格参数列表，根据属性类型编号...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/productAttribute/list/11?pageNum=1&pageSize=100&type=1</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
					{"code":200,"message":"操作成功","data":{"pageNum":1,"pageSize":100,"totalPage":1,"total":1,"list":[{"id":52,"productAttributeCategoryId":11,"name":"机身","selectType":0,"inputType":0,"inputList":"键盘类型，款式","sort":0,"filterType":0,"searchType":0,"relatedStatus":1,"handAddStatus":1,"type":1}]}}					</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>15.专题列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/subject/listAll</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":[{"id":1,"categoryId":1,"title":"polo衬衫的也时尚","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-11T05:26:55.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"服装专题","content":null},{"id":2,"categoryId":2,"title":"大牌手机低价秒","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-12T05:27:00.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"手机专题","content":null},{"id":3,"categoryId":2,"title":"晓龙845新品上市","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-13T05:27:05.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"手机专题","content":null},{"id":4,"categoryId":1,"title":"夏天应该穿什么","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-01T05:27:09.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"服装专题","content":null},{"id":5,"categoryId":1,"title":"夏季精选","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-06T05:27:18.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"服装专题","content":null},{"id":6,"categoryId":2,"title":"品牌手机降价","pic":null,"productCount":null,"recommendStatus":null,"createTime":"2018-11-07T05:27:21.000+00:00","collectCount":null,"readCount":null,"commentCount":null,"albumPics":null,"description":null,"showStatus":null,"forwardCount":null,"categoryName":"手机专题","content":null}]}
					</pre>
				</details>
			</div>
		</div> 
		<div>
			<h3>16.优选列表...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/prefrenceArea/listAll</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":[{"id":1,"name":"让音质更出众","subTitle":"音质不打折 完美现场感","sort":null,"showStatus":1,"pic":null},{"id":2,"name":"让音质更出众22","subTitle":"让音质更出众22","sort":null,"showStatus":null,"pic":null},{"id":3,"name":"让音质更出众33","subTitle":null,"sort":null,"showStatus":null,"pic":null},{"id":4,"name":"让音质更出众44","subTitle":null,"sort":null,"showStatus":null,"pic":null}]}
					</pre>
				</details>
			</div>
		</div> 
		
		<div>
			<h3>4.新增商品...post</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/product/create</p>
				<details>
					<summary>参数示例</summary>
					<pre class="parseJson">
						{
							  activeProductAddStep:0,
							  productAddData:{
								albumPics: null,
								brandId: 0,						//品牌编号
								brandName: null,				//品牌名称
								deleteStatus: 0,							//删除状态
								description:null,			//商品描述
								detailDesc: null,				//商品详细
								detailHtml:null,			//电脑端描述内容		--编辑器
								detailMobileHtml:null,	//移动端描述内容
								detailTitle: null,		//详细页描述
								feightTemplateId: 0,
								flashPromotionCount: 0,
								flashPromotionId: 0,
								flashPromotionPrice: 0,
								flashPromotionSort: 0,
								giftGrowth: null,
								giftPoint: null,
								keywords: null,				//商品搜索的关键字
								lowStock: 0,								//库存预警值
								memberPriceList: [],
								name: null,					//商品名称
								newStatus: 0,						//是否新品
								note: null,						//商品备注
								originalPrice: 0,					//商城售价
								pic: null,								//商品...
								prefrenceAreaProductRelationList:[],
								previewStatus: 0,					//推荐状态
								price: null,							//真实价格
								productAttributeCategoryId: null,		//商品类型编号
								productAttributeValueList: [],			//商品类型列表
								productCategoryId: null,					//商品分类id
								productCategoryName: null,			//商品分类的名字
								productFullReductionList: [],		//关联列表
								productLadderList: [],			//关联列表
								productSn: null,						//商品货号
								promotionEndTime: null,					//结束时间
								promotionPerLimit: 0,					//优惠
								promotionPrice: null,					//优惠
								promotionStartTime: null,					//优惠
								promotionType: 0,					//优惠
								publishStatus: 0,						//上架状态
								recommandStatus: 0,						//推荐状态
								sale: 0,									//销售
								serviceIds: ["无忧退货","免费包邮"],					//服务编号
								skuStockList: [],						//sku列表
								sort: 0,									//排序
								stock: null,								//库存
								subTitle: null,						//子标题
								subjectProductRelationList: [],
								unit: null,								//计量单位
								usePointLimit: null,				//积分限制
								verifyStatus: 0,					//
								weight: null							,//重量
								}
						}
					</pre>
				</details>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
						{"code":200,"message":"操作成功","data":1}
					</pre>
				</details>
			</div>
		</div> 
		<!-- 
		<div>
			<h3>4.登录接口...get</h3>
			<div class="children">
				<p>请求路径示例：http://10.10.10.114:8080/admin/login</p>
				<details>
					<summary>返回结果</summary>
					<pre class="parseJson">
					
					</pre>
				</details>
			</div>
		</div> 
		-->
	</body>
</html>
<script>
	window.onload = function() {
		let ps = document.querySelectorAll(".parseJson");
		ps.forEach((p) => {
			p.innerHTML = JSON.stringify(JSON.parse(p.innerHTML), null, 2);
		})
		
		document.querySelectorAll("h3").forEach((h3)=>{
			h3.show=false;
			h3.onclick=function(){
				console.log(this.show)
				if(this.show){
					this.nextElementSibling.style.display="none";
					this.show=false;
				}else{
					this.nextElementSibling.style.display="block";
					this.show=true;
				}
			}
		})
	}
</script>
	</body>
</html>
